<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'demo.jsp' starting page</title>
	
   <link rel="stylesheet"
	href="<%=basePath %>res/bootstrap/dist/css/bootstrap.min.css">



    <link
	href="<%=basePath %>res/bootstrap-datetimepicker/css/bootstrap-datetimepicker.min.css"
	rel="stylesheet">
<link
	href="<%=basePath %>res/bootstrap-datetimepicker/css/bootstrap-datetimepicker-standalone.css"
	rel="stylesheet">
	<script src="<%=basePath %>res/jquery/dist/jquery.min.js"></script>
	<!-- Bootstrap 3.3.7 -->
	<script src="<%=basePath %>res/bootstrap/dist/js/bootstrap.min.js"></script>
	
	
	<script
		src="<%=basePath %>res/bootstrap-datetimepicker/js/moment.min.js"></script>
	<script
		src="<%=basePath %>res/bootstrap-datetimepicker/js/moment-with-locales.min.js"></script>
	<script
		src="<%=basePath %>res/bootstrap-datetimepicker/js/bootstrap-datetimepicker.min.js"></script>
	<script>


    $(function () {

        //设置日期插件
        $('#datetimepicker1').datetimepicker({
            format: 'YYYY-MM-DD',
            locale: moment.locale('zh-cn')
        });


    });


</script>
  </head>
  	
  <body>
   <div class="content-wrapper">
   
	   <div class="form-group">
			<label class="col-xs-1 control-label">时间：</label>
			<div class='col-xs-6 input-group date' id='datetimepicker1'>
				<input name="st" type='text' class="form-control" /> 
				<span class="input-group-addon"> 
					<span class="glyphicon glyphicon-calendar"></span>
				</span>
			</div>
		</div>
	</div>
	
	
  </body>

  
</html>
